import React from 'react';
import ReactDOM from 'react-dom';
import {ApplicationRun} from "./pages";
import zhCN from "antd/lib/locale/zh_CN";
import { BrowserRouter as Router } from "react-router-dom";
import {ConfigProvider} from "antd";
import {store, persist} from "./redux";
import 'antd/dist/antd.less';
import {Provider} from "react-redux";
import {PersistGate} from "redux-persist/integration/react";
// import 'antd/dist/antd.dark.less';

ReactDOM.render(
    <Provider store={store}>
        <PersistGate persistor={persist}>
            <ConfigProvider locale={zhCN}>
                <Router>
                    <ApplicationRun/>
                </Router>
            </ConfigProvider>
        </PersistGate>
    </Provider>,
    document.getElementById('root')
);

